#ifndef TOYS_H
#define TOYS_H

#include <QPixmap>
#include <QLabel>
#include <QPoint>
#include "SourceFile.h"
#include <QRect>

class Toys
{
public:
    Toys();

    void loadpix();

    void toyinit(QString pixpath,QWidget* parent);

    void updata();

public:

   QPixmap pix;

   QPoint pos;

   QLabel pltoy;

   QRect rct;

   bool isloop;

   int m_x=0;
   int m_y=0;

};

#endif // TOYS_H
